package com.team11.server.service.admin;

import com.team11.server.mapper.Admin_InsertSInP_Mapper;
import com.team11.server.pojo.P_C_S_T_information;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class Admin_InsertSInP_Service {
    @Autowired
    private Admin_InsertSInP_Mapper admin_insertSInP_mapper;
    public List<P_C_S_T_information> selAllS_NotInP(Integer pId){
        return admin_insertSInP_mapper.SelAllS_NotInP(pId);
    }
    public String insertSInP(HashMap<String,Object> map){
        Integer t=admin_insertSInP_mapper.InsertSInP(map);
        if (t>0){
            return "1";
        }
        else return "新增失败";
    }
}
